package com.engineering.elink.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.co.CoinCo;
import com.engineering.elink.domain.Coin;

public interface CoinMapper {
    int deleteByPrimaryKey(Integer coinId);

    int insert(Coin record);

    int insertSelective(Coin record);

    Coin selectByPrimaryKey(Integer coinId);
    
    List<Map<String,Object>> selectListByUserId (@Param("coinCo") CoinCo coinCo);
    
    int selectListCountByUserId (@Param("coinCo") CoinCo coinCo);

    int updateByPrimaryKeySelective(Coin record);

    int updateByPrimaryKey(Coin record);

	int selectCount(@Param("userId") String userId, @Param("typeId") int typeId);
}